/**
 * 工具函数
 */

export const formatDate = (date: Date): string => {
  return date.toISOString().split('T')[0];
};

export const getEnvValue = (key: string): string => {
  return import.meta.env[key] || '';
};

export const getAppTitle = (): string => {
  return import.meta.env.VITE_APP_TITLE;
};

export const getApiBaseUrl = (): string => {
  return import.meta.env.VITE_API_BASE_URL;
}; 